/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-12-01 15:49:56
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2023-01-04 16:00:25
 * @FilePath: \BP007_U90E_LinearValve_20221207\SD931X.LIB\user\bp.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/**
  ******************************************************************************
  * @file   : bp.h
  * @author : 测试1组（houtiezhu）
  * @version: v0
  * @date   : 2019.07.09
  * @brief  :
  *
  * Copyright (C) 2019  Hangzhou SDIC Microelectronics Co., Ltd
  ******************************************************************************
**/

#ifndef BP_H
#define BP_H

/*系统头文件包含*/
//#include "YinXing.h"
#define MAX_PRESSURE	299					// Maximum Pressure limite
#define MAX_PULSERATE	200
#define MIN_PULSERATE 40
extern uint8 USBFlag;
extern uint16  PulseMeanEnd;
extern uint16   EEPROMin;
extern uint8 WorkMode;
extern uint8  NoEndFlag;
extern  uint8 ShowBTLevel,BTLevel;
extern	uint8   N;
extern	uint8   AverageSet;
extern	uint16   MemorySet;   		 	//memory set
extern	uint8	MemorySetType;
extern	uint16  SysMeanEnd;
extern	uint16 	PressureCountw;
extern uint8   validcount;
extern uint16  LeakageP[10];
extern	uint16 	PressureBackup;
extern	volatile union byte_bit		UserSetFlag;
extern	volatile union byte_bit 		STATEFlag1;
extern	uint8 AutoKeyCount[2];
extern	volatile union byte_bit  KeyModeFlag;
extern	uint16   EEPROMin;
extern uint8 VoiceType2;
extern uint8 VoiceLevel;
extern	uint16  SetPressureVw;
extern uint32 x,y,z;
extern uint8 noactioncount;
extern  uint8 first10flag,first1flag;
extern  uint16  ShowPressCount;
extern  uint16  LastSYS;
extern  uint8   LastDIA;
extern uint8  SLevel;
extern	uint8   WHOLevel;
extern	uint8 BPTestFlag,CuffFlag,MoveFlag;
extern uint8 TestValue;


void tomemorykeyin(void);
void calpressure(void);
void zerotracing(void);
void ShowVoice(void);


void	checkpumptime(void);

void	showresults(void);
void	resultdata(void);
void tomemorykeyinX(uint16 MemoryIndex);

void Bp_Work(void);
void tomemoryMemorySenevAVg(unsigned int MemoryIndex1);
void nopdelay(void);

#endif

/************************ (C) COPYRIGHT Hangzhou SDIC Microelectronics *****END OF FILE****/
